package top.healthylife.gateway.platform.baihang.api.api.operatorproduct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu024.req.BHReqThreeElementsEasyDto;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu024.res.BHResThreeElementsEasyDto;

/**
 * 手机三要素核验简版
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "手机三要素核验简版" , info = "核查手机号、姓名、证件号是否完全一致（支持电信、联通、移动）")
public class BHThreeElementsEasyApi implements ParentFace<BHReqThreeElementsEasyDto, BHResThreeElementsEasyDto> {

    private static final String PRODUCT_CODE = "MBASUT24";

    @Override
    public BHResThreeElementsEasyDto execute(BHReqThreeElementsEasyDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResThreeElementsEasyDto.class);
    }
}
